package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import cn.hutool.core.annotation.Alias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.example.springboot.common.LDTConfig;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 
* </p>
*
* @author ikun
* @since 2023-05-30
*/
@Getter
@Setter
@TableName("order_detail")
@ApiModel(value = "OrderDetail对象", description = "")
public class OrderDetail implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 商品ID
    @ApiModelProperty("商品ID")
    @Alias("商品ID")
    private Integer goodsId;

    // 商品数量
    @ApiModelProperty("商品数量")
    @Alias("商品数量")
    private Integer num;

    // 商品价格
    @ApiModelProperty("商品价格")
    @Alias("商品价格")
    private BigDecimal price;

    // 订单ID
    @ApiModelProperty("订单ID")
    @Alias("订单ID")
    private Integer orderId;
}